<template>
	<view class="detail-view">
		<view class="top-bar">
			<uni-navbar :fixed="true" :back="true" color="#fff" title="内容详情"></uni-navbar>
		</view>


		<view class="formView">
			<view class="formViewItem">
				<view class="formViewItemLeft">
					标题
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.title ? issueInfo.title : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题来源
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.isSourceName ? issueInfo.isSourceName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题提交时间
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.submitTime ? issueInfo.submitTime : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题分类
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.classifyName ? issueInfo.classifyName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题分类明细
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.classifyDetailName ? issueInfo.classifyDetailName : '无' }}
				</view>
			</view>


			<u-gap height="20" bgColor="#F6F7FB"></u-gap>


			<view class="formViewItem">
				<view class="formViewItemLeft">
					提交人
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.submitName ? issueInfo.submitName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					联系电话
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.phone ? issueInfo.phone : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					所属代表之家
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.dbzjDeptName ? issueInfo.dbzjDeptName : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					定位地址
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.addr ? issueInfo.addr : '无' }}
				</view>
			</view>

			<view class="formViewItem">
				<view class="formViewItemLeft">
					详细位置
				</view>
				<view class="formViewItemRight">
					{{ issueInfo.addrDetail ? issueInfo.addrDetail : '无' }}
				</view>
			</view>
			
			
			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题负责人
				</view>
				<view class="formViewItemRight">
					<text v-for="(item,index) of issueChargePepList">{{ index == '0' ? item.userName : ',' + item.userName }}</text>
				</view>
			</view>
			
			<view class="formViewItem">
				<view class="formViewItemLeft">
					议题参与代表
				</view>
				<view class="formViewItemRight" v-if="issuePartPepList.length !== 0">
					<text v-for="(item,index) of issuePartPepList">{{ index == '0' ? item.userName : ',' + item.userName}}</text>
				</view>
				
				<view class="formViewItemRight" v-else>
					<text>无</text>
				</view>
			</view>


			<view class="textA">
				{{ issueInfo.content ? issueInfo.content : '无' }}
			</view>

			<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
				<view class="fileList2">
					<view class="fileList2Item" v-for="(item,index) of fileList_Info"
						@tap="$showLine(item)">
						<view class="fileList2ItemLeft">
							<image src="@/pagesB/static/doc.png" mode=""></image>
						</view>
						<view class="fileList2ItemCenter">
							<view class="">
								{{ item.name }} 
							</view>

							<view class="" style="display: flex;align-items: center;">
								<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
									{{ item.size }}
								</view>

								<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
									预览
								</view>
							</view>
						</view>
						<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
							预览
						</view> -->
					</view>
				</view>
			</view>

			<u-gap height="20" bgColor="#F6F7FB"></u-gap>

			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							议题审查
						</view>
						<view class="histListItemTopRight" @tap="ytxsShow = !ytxsShow">
							<u-icon :name="ytxsShow ? 'arrow-up' : 'arrow-down' " color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter" v-if="ytxsShow">

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查主体
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditUserName }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查时间
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditTime }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查结果
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditStatus == '1' ? '通过' : '未通过' }}
							</view>
						</view>

						<view class="formViewItem" v-if="issueAudit.auditStatus !== '1'">
							<view class="formViewItemLeft">
								退回理由
							</view>
							<view class="formViewItemRight">
								{{ issueAudit.auditOpinion ? issueAudit.auditOpinion : '无' }}
							</view>
						</view>
					</view>
				</view>
			</view>
			
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>


			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上留言
						</view>
						<view class="histListItemTopRight" @tap="ytgkShow = !ytgkShow">
							<u-icon :name="ytgkShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter" v-if="ytgkShow">

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查主体
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditUserName }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查时间
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditTime }}
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								审查结果
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.auditStatus == '1' ? '通过' : '未通过' }}
							</view>
						</view>
						
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								选择公开日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.openStart + '至' + msIssueOpen.openEnd }}
							</view>
						</view>
						
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								选择公开范围
							</view>
							<view class="formViewItemRight">
								{{ msIssueOpen.openDbzjName }}
							</view>
						</view> -->
					</view>

					
				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			<view class="histList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="sqdyShow = !sqdyShow">
						<view class="intitle histListItemTopLeft">
							议前调研
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="!sqdyShow ? 'arrow-down' : 'arrow-up'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="sqdyShow">
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								选择调研日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueSurvey.surveyStart + '至' + msIssueSurvey.surveyEnd }}
							</view>
						</view>
			
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								<text v-for="(item,index) of msIssueSurvey.msIssueCtmebList">{{ index == 0 ? item.cyMebName : ',' + item.cyMebName}}</text>  
							</view>
						</view> -->
					</view>
				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			
			<view class="histList" v-if="msIssueSurvey && msIssueSurvey.msIssueSurveyResultList && msIssueSurvey.msIssueSurveyResultList.length !== 0" v-for="(item,index) of msIssueSurvey.msIssueSurveyResultList">
				<view class="histListItem">
					<view class="histListItemTop" @tap="dycgscShow == item.id ? dycgscShow = '' : dycgscShow = item.id">
						<view class="intitle histListItemTopLeft">
							调研成果上传记录
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="dycgscShow == item.id ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="dycgscShow == item.id">
						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								{{item.submitName}}
							</view>
						</view> -->
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研时间
							</view>
							<view class="formViewItemRight">
								{{item.submitTime}}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果
							</view>
							<view class="formViewItemRight">
								{{item.surveyResult}}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果附件
							</view>
							<view class="formViewItemRight">
							</view>
						</view>
						
						
						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(fileItem,fileIndex) of item.fileRepositorylist"
									@tap="$showLine(fileItem)">
									<view class="fileList2ItemLeft">
										<image src="@/pagesB/static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											{{ fileItem.name }}
										</view>
						
										<view class="" style="display: flex;align-items: center;">
											<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
												{{ fileItem.size }}
											</view>
						
											<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
												预览
											</view>
										</view>
									</view>
									<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view> -->
								</view>
							</view>
						</view>
						
					</view>
				</view>
				
				<u-gap v-if="index + 1 !== msIssueSurvey.msIssueSurveyResultList.length" height="20" bgColor="#F6F7FB"></u-gap>
			</view>
			
			<!-- <view class="histList" v-if="msIssueConsult && msIssueConsult.msIssueConResult && type !== 'scxscg'">
				<view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight" @tap="msysShow = !msysShow">
							<u-icon :name="msysShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="msysShow">
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								码上议事时间
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conTime }}
							</view>
						</view>
			
						<view class="formViewItem">
							<view class="formViewItemLeft">
								码上议事地点
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conPlace }}
							</view>
						</view>
						
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								码上议事成果
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.msIssueConResult.conResult }}
							</view>
						</view>
					</view>
			
					
			
					
				</view>
			</view> -->
			
			
			
			<!-- <view class="histList" v-if="msIssueConsult && msIssueConsult.msIssueConHandle">
				<view class="histListItem">
					<view class="histListItemTop" @tap="ysblShow = !ysblShow ">
						<view class="intitle histListItemTopLeft">
							议事办理
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="ysblShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="ysblShow">
						<view class="formViewItem">
							<view class="formViewItemLeft">
								议事办理方式
							</view>
							<view class="formViewItemRight">
								{{msIssueConsult.msIssueConHandle.hanTypeName}}
							</view>
						</view>
					</view>
				</view>
			</view> -->
			
			
			<view class="histList" v-if="msIssueConsult && msIssueConsult.msIssueConHandle && msIssueConsult.msIssueConHandle.id">
				<view class="histListItem">
					<view class="histListItemTop" @tap="cgjbShow = !cgjbShow ">
						<view class="intitle histListItemTopLeft">
							方案办理
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="cgjbShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="cgjbShow">
						<view class="formViewItem">
							<view class="formViewItemLeft">
								办理方式
							</view>
							<view class="formViewItemRight">
								{{msIssueConsult.msIssueConHandle.hanTypeName}}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								办理时间
							</view>
							<view class="formViewItemRight">
								{{msIssueConsult.msIssueConHandle.submitTime}}
							</view>
						</view>
						
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								办理结果
							</view>
							<view class="formViewItemRight">
								{{msIssueConsult.msIssueConHandle.hanResult}}
							</view>
						</view>
						
						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(fileItem,fileIndex) of msIssueConsult.msIssueConHandle.fileRepositorylist"
									@tap="$showLine(fileItem)">
									<view class="fileList2ItemLeft">
										<image src="@/pagesB/static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											{{ fileItem.name }}
										</view>
						
										<view class="" style="display: flex;align-items: center;">
											<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
												{{ fileItem.size }}
											</view>
						
											<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
												预览
											</view>
										</view>
									</view>
									<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view> -->
								</view>
							</view>
						</view>
						
						
					</view>
				</view>
			</view>
			
			
			<view class="histList" v-if="msIssueDisclosure && msIssueDisclosure.id">
				<view class="histListItem">
					<view class="histListItemTop" @tap="jggkShow = !jggkShow ">
						<view class="intitle histListItemTopLeft">
							结果公开
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="jggkShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="jggkShow">
						<view class="formViewItem">
							<view class="formViewItemLeft">
								结果公开日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueDisclosure.dceStart + '至' + msIssueDisclosure.dceEnd }}
							</view>
						</view>
					</view>
				</view>
			</view>
			
			<u-gap height="20" bgColor="#F6F7FB"></u-gap>
			
			
			<view class="histList" v-if="type !== 'scdycg' && msIssueDisclosure.dceStart">
				<view class="histListItem">
					<view class="histListItemTop" @tap="jggsShow = !jggsShow ">
						<view class="intitle histListItemTopLeft">
							码上公开
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="jggsShow ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>
			
					<view class="histListItemCenter" v-if="jggsShow">
						<view class="formViewItem">
							<view class="formViewItemLeft">
								码上公开时间
							</view>
							<view class="formViewItemRight">
								{{ msIssueDisclosure.dceStart + '-' + msIssueDisclosure.dceEnd }}
								
							</view>
						</view>
					</view>
				</view>
			</view>
			
			<view class="histListEdit">
				<view class="histListItem" v-if="type == 'ksmsxs'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								码上议事时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<date-time-picker placeholder="请选择" fields="day"
										@change="timeChange($event, 'conTime','msxs')">
									</date-time-picker>
								</view>
							</view> 
						</view> 

						<!-- <view class="formViewItem">
							<view class="formViewItemLeft2">
								码上议事人员<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="" @click="showPicker">
									<text style="font-size: 17px;color: #999999;" v-for="(item,index) of ksmsxsQuery.consultMebArr" :key="index">{{ index == 0 ? item.userName : ',' + item.userName }}</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view> -->

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								码上议事地点<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<u-input v-model="ksmsxsQuery.issueConsult.conPlace" type="text" placeholder="请输入码上议事地点" />
								
								<!-- <view class="" @click="getLoction">
									<text @click="getLoction" style="font-size: 17px;color: #999999;">{{ ksmsxsQuery.issueConsult.conPlace }}</text>
									<u-icon @click="getLoction" style="padding-left:10upx" name="arrow-right"
										color="#000000" size="28">
									</u-icon>
								</view> -->
							</view>
						</view>
					</view>


					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="ksmsxsBtn">提交</u-button>
					</view>
				</view>



				<view class="histListItem" v-for="(item,index) of msIssueConsult.msIssueConResultList" :key="index">
					<view class="histListItemTop" @tap="msystype == item.id ? msystype = '' : msystype = item.id">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<u-icon :name="msystype == item.id ? 'arrow-up' : 'arrow-down'" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter" v-if="msystype == item.id">

						<view class="formViewItem" v-if="index == '0'">
							<view class="formViewItemLeft">
								议事日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conTime }}
							</view>
						</view>

						<view class="formViewItem" v-if="index == '0'">
							<view class="formViewItemLeft">
								议事地点
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conPlace }}
							</view>
						</view>

						<!-- <view class="formViewItem">
							<view class="formViewItemLeft">
								议事人员
							</view>
							<view class="formViewItemRight">
								{{ item.submitName }}
							</view>
						</view> -->
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								议事时间
							</view>
							<view class="formViewItemRight">
								{{ item.submitTime }}
							</view>
						</view>
						
						<view class="formViewItem">
							<view class="formViewItemLeft">
								议事成果
							</view>
							<view class="formViewItemRight">
								{{ item.conResult }}
							</view>
						</view>


						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(fileItem,fileIndex) of item.fileRepositorylist"
									@tap="$showLine(fileItem)">
									<view class="fileList2ItemLeft">
										<image src="@/pagesB/static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											{{ fileItem.name }}
										</view>
						
										<view class="" style="display: flex;align-items: center;">
											<view class="" style="flex: 1;color: #999999;font-size: 12px;padding-top: 10upx;">
												{{ fileItem.size }}
											</view>
						
											<view class="" style="flex: 1;text-align: right;color: #0077FF;font-size: 12px;">
												预览
											</view>
										</view>
									</view>
									<!-- <view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view> -->
								</view>
							</view>
						</view>
						

						
					</view>

					<u-gap height="20" bgColor="#F6F7FB"></u-gap>
				</view>
				
				
				<view class="histListItem" v-if="type == 'scxscg'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							
						</view>
					</view>
				
					<view class="histListItemCenter">
						<view class="formViewItem">
							<view class="formViewItemLeft">
								议事日期
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conTime }}
							</view>
						</view>
												
						<view class="formViewItem">
							<view class="formViewItemLeft">
								议事地点
							</view>
							<view class="formViewItemRight">
								{{ msIssueConsult.conPlace }}
							</view>
						</view>
						
						<view class="formViewItem2">
							<view class="formViewItemLeft2">
								码上议事成果<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<u-form-item class="form-item border-none" label="" labelPosition="top"
										prop="contact">
										<u-input inputAlign="left" v-model="scxscgQuery.consultResult.conResult"
											type="textarea" placeholder="请输入码上议事成果" :clearable="false" :height="160"
											:maxlength="-1" />
									</u-form-item>
								</view>
							</view>
						</view>
				
						<u-form-item class="form-item" labelPosition="top" style="padding: 0 40rpx;">
							<uni-file-upload @filePush="filePush" :type="['image']" :limit="10"></uni-file-upload>
						</u-form-item>
					</view>
				
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="scxscgBtn">提交</u-button>
					</view>
				</view>


				<view class="" v-if="type == 'scdycg'">
					<view class="formViewItem">
						<view class="formViewItemLeft2">
							调研成果<text class="" style="color: red;">*</text>
						</view>
						<view class="formViewItemRight">

						</view>
					</view>

					<u-form :model="form" ref="uForm">
						<u-form-item class="form-item border-none" label="" labelPosition="top" prop="content">
							<u-input inputAlign="left" v-model="dycgQuery.surveyResult.surveyResult" type="textarea"
								placeholder="请输入调研成果" :clearable="false" :height="160" :maxlength="-1" />
						</u-form-item>
					</u-form>

					<u-form-item class="form-item" labelPosition="top">
						<uni-file-upload style="padding: 0 40rpx;" @filePush="filePush" :type="['image']" :limit="10">
						</uni-file-upload>
					</u-form-item>


					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="dycgBtn">提交</u-button>
					</view>
				</view>
				
				
				
				<view class="" v-if="type == 'zjbl' || type == 'zsrd'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							议题办理
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>
				
					<view class="formViewItem">
						<view class="formViewItemLeft3" style="color: #333333 !important;">
							<text style="color: red;">*</text>选择议题办理方式
						</view>
						<view class="formViewItemRight2">
							<u-radio-group v-model="blquery.consultHandle.hanType" @change="radioGroupChange">
								<u-radio label="通过" name="1" @change="radioChange">
									自己办理
								</u-radio>
								<u-radio label="通过" name="2" style="padding-left: 60upx;" @change="radioChange">
									转市人大
								</u-radio>
							</u-radio-group>
						</view>
					</view>
					
					<view class="formViewItem" v-if="blquery.consultHandle.hanType == '1'">
						<view class="formViewItemLeft2">
							填写办理结果
						</view>
						<view class="formViewItemRight">
					
						</view>
					</view>
					
					<u-form :model="blquery" ref="uForm" v-if="blquery.consultHandle.hanType == '1'">
						<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
							prop="content">
							<u-input inputAlign="left" v-model="blquery.consultHandle.hanResult" type="textarea"
								:placeholder="blquery.consultHandle.hanType == '1' ? '请输入办理结果' : '请输入办理结果'"
								:clearable="false" :height="160" :maxlength="-1" />
						</u-form-item>
					</u-form>
				
				
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="scbljgBtn">提交</u-button>
					</view>
				</view>
				
				
				<!-- 方案办理 -->
				<!-- <view class="" >
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							方案办理
						</view>
						<view class="histListItemTopRight">
							
						</view>
					</view>
				
					<view class="formViewItem">
						<view class="formViewItemLeft3" style="color: #333333 !important;">
							<text style="color: red;">*</text>办理方式
						</view>
						<view class="formViewItemRight2">
							<u-radio-group v-model="cgjbquery.consultHandle.hanType" @change="radioGroupChange">
								<u-radio label="通过" name="1" @change="radioChange">
									人大自己办理
								</u-radio>
								<u-radio label="通过" name="2" style="padding-left: 60upx;" @change="radioChange">
									转议案建议
								</u-radio>
							</u-radio-group>
						</view>
					</view>
					
					<view class="formViewItem" >
						<view class="formViewItemLeft2">
							办理结果
						</view>
						<view class="formViewItemRight">
					
						</view>
					</view>
					
					<u-form :model="blquery" ref="uForm" >
						<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
							prop="content">
							<u-input inputAlign="left" v-model="cgjbquery.consultHandle.hanResult" type="textarea"
								:placeholder="cgjbquery.consultHandle.hanType == '1' ? '请输入办理结果' : '请输入办理结果'"
								:clearable="false" :height="160" :maxlength="-1" />
						</u-form-item>
					</u-form>
				
				
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="cgjbbtn">提交</u-button>
					</view>
				</view> -->
				
				<!-- 方案办理结束 -->
				
				
				
				<view class="" v-if="(type == 'rdzjbl' || type == 'zyajy') && type !== 'bl'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							方案办理
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>
				
					<view class="formViewItem">
						<view class="formViewItemLeft3" style="color: #333333 !important;">
							<text style="color: red;">*</text>选择办理方式
						</view>
						<view class="formViewItemRight2">
							<u-radio-group v-model="cgjbquery.consultHandle.hanType" @change="radioGroupChange">
								<u-radio label="通过" name="1" @change="radioChange">
									人大自己办理
								</u-radio>
								<u-radio label="通过" name="2" style="padding-left: 60upx;" @change="radioChange">
									转议案建议
								</u-radio>
							</u-radio-group>
						</view>
					</view>
					
					<view class="formViewItem" v-if="cgjbquery.consultHandle.hanType == '1'">
						<view class="formViewItemLeft2">
							填写办理结果
						</view>
						<view class="formViewItemRight">
					
						</view>
					</view>
					
					<u-form :model="blquery" ref="uForm" v-if="cgjbquery.consultHandle.hanType == '1'">
						<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
							prop="content">
							<u-input inputAlign="left" v-model="cgjbquery.consultHandle.hanResult" type="textarea"
								:placeholder="cgjbquery.consultHandle.hanType == '1' ? '请输入办理结果' : '请输入办理结果'"
								:clearable="false" :height="160" :maxlength="-1" />
						</u-form-item>
					</u-form>
				
				
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="cgjbbtn">提交</u-button>
					</view>
				</view>
				
				
				<view class="" v-if="type == 'bl'">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							方案办理
						</view>
						<view class="histListItemTopRight">
							<!-- <u-icon name="arrow-down" color="#000000" size="28"></u-icon> -->
						</view>
					</view>
									
					<view class="formViewItem" >
						<view class="formViewItemLeft2">
							填写办理结果
						</view>
						<view class="formViewItemRight">
					
						</view>
					</view>
					
					<u-form :model="blquery" ref="uForm" >
						<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
							prop="content">
							<u-input inputAlign="left" v-model="blquery.consultHandle.hanResult" type="textarea"
								:placeholder="blquery.consultHandle.hanType == '1' ? '请输入办理结果' : '请输入办理结果'"
								:clearable="false" :height="160" :maxlength="-1" />
						</u-form-item>
					</u-form>
									
									
					<view class="fiexd-btm">
						<u-button class="form-btn" type="error" @click="blwc">提交</u-button>
					</view>
				</view>
				
				
				<view class="histListEdit" v-if="type == 'ksjggs'">
					<view class="histListItem">
						<view class="histListItemTop">
							<view class="intitle histListItemTopLeft">
								结果公示
							</view>
							<view class="histListItemTopRight">
								<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
							</view>
						</view>
						
						<view class="histListItemCenter">
							
							<view class="formViewItem">
								<view class="formViewItemLeft2">
									结果公示开始时间<text class="" style="color: red;">*</text>
								</view>
								<view class="formViewItemRight">
									<view class="">
										<date-time-picker placeholder="请选择" fields="day" @change="timeChange2($event, 'dceStart')">
										</date-time-picker>
									</view>
								</view>
							</view>
							
							<view class="formViewItem">
								<view class="formViewItemLeft2">
									结果公示结束时间<text class="" style="color: red;">*</text>
								</view>
								<view class="formViewItemRight">
									<view class="">
										<date-time-picker placeholder="请选择" fields="day" @change="timeChange2($event, 'dceEnd')">
										</date-time-picker>
									</view>
								</view>
							</view>
							
							
							
							<view class="fiexd-btm">
								<u-button class="form-btn" type="error" @click="jggsBtn">提交</u-button>
							</view>
							
						</view>
					</view>
				</view>


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上议事
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事人员<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<image src="../../../static/tjry.png" mode=""></image>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								议事地点<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>
					</view>
				</view> -->


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							码上公开
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								开始公开时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								结束公开时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>
					</view>
				</view> -->

				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							议前调研
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研时间<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #999999;">请点击选择</text>
									<u-icon style="padding-left:10upx" name="arrow-right" color="#000000" size="28">
									</u-icon>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研人员<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">
								<image src="../../../static/tjry.png" mode=""></image>
							</view>
						</view>

					</view>
				</view> -->


				<!-- <view class="histListItem">
					<view class="histListItemTop">
						<view class="intitle histListItemTopLeft">
							调研成果上传记录
						</view>
						<view class="histListItemTopRight">
							<u-icon name="arrow-down" color="#000000" size="28"></u-icon>
						</view>
					</view>

					<view class="histListItemCenter">

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研人员
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研时间
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view class="formViewItem">
							<view class="formViewItemLeft">
								调研成果
							</view>
							<view class="formViewItemRight">
								<view class="">
									<text style="font-size: 17px;color: #000000;">请点击选择</text>
								</view>
							</view>
						</view>

						<view style="background-color: #FFFFFF;width: 100%;padding: 20upx 28upx;" class="">
							<view class="fileList2">
								<view class="fileList2Item" v-for="(item,index) of 2"
									@tap="toline(httpf + '/' + item.id + '?fullfilename=' + item.remark4)">
									<view class="fileList2ItemLeft">
										<image src="../../../static/doc.png" mode=""></image>
									</view>
									<view class="fileList2ItemCenter">
										<view class="">
											123123123
										</view>

										<view class="">
											qweqweqwe
										</view>
									</view>
									<view class="fileList2ItemRight" @tap="toDelete(index,'file')">
										预览
									</view>
								</view>
							</view>
						</view>


						<view class="formViewItem">
							<view class="formViewItemLeft2">
								调研成果<text class="" style="color: red;">*</text>
							</view>
							<view class="formViewItemRight">

							</view>
						</view>

						<u-form :model="form" ref="uForm">
							<u-form-item style="padding: 0 40upx;" class="form-item border-none" label=""
								labelPosition="top" prop="content">
								<u-input inputAlign="left" v-model="form.content" type="textarea" placeholder="请输入调研成果"
									:clearable="false" :height="160" :maxlength="-1" />
							</u-form-item>
						</u-form>

						<view class="fileAdd">
							<view class="fileAddTop">
								+
							</view>
							<view class="fileAddText">
								成果上传
							</view>

						</view>
					</view>
				</view> -->

			</view>
			
			
			
			




			<!-- <view class="">
				<view class="intitle">
					议题审查
				</view>

				<view class="textA">
					ASDADADADDSADASDADADADDSADASDADADADDSADASDADADADDSAD
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事时间
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事地点
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>

				<view class="formViewItem">
					<view class="formViewItemLeft">
						议事人员
					</view>
					<view class="formViewItemRight">
						123123
					</view>
				</view>
			</view> -->



			<!-- <view class="">
				<view class="intitle">
					问题审查
				</view>


				<view class="formViewItem">
					<view class="formViewItemLeft" style="color: #333333 !important;">
						是否受理
					</view>
					<view class="formViewItemRight">
						<u-radio-group v-model="value" @change="radioGroupChange">
							<u-radio @change="radioChange">
								通过
							</u-radio>
							<u-radio style="padding-left: 60upx;" @change="radioChange">
								退回
							</u-radio>
						</u-radio-group>
					</view>
				</view>

				<u-form :model="form" ref="uForm">
					<u-form-item style="padding: 0 40upx;" class="form-item border-none" label="" labelPosition="top"
						prop="content">
						<u-input inputAlign="left" v-model="form.content" type="textarea" placeholder="请输入退回理由"
							:clearable="false" :height="160" :maxlength="-1" />
					</u-form-item>
				</u-form>
			</view> -->
		</view>


		<ba-tree-picker ref="treePicker" :multiple='true' :selectParent="false" @search="searchTap" @typeTap="typeTap" @select-change="selectChange" title="选择人员"
			:localdata="zbList" valueKey="id" textKey="title" childrenKey="children" />
	</view>
</template>

<script>
	import uniFileUpload from '@/components/uni-file-uploader.vue';
	import baTreePicker from "@/components/ba-tree-picker/ba-tree-picker.vue";
	import uniParse from '@/components/uni-parse/parse.vue';
	import dateTimePicker from '@/components/uni-datetime-picker';
	import selectTree from '@/components/uni-select-tree.vue';
	import {
		mapState
	} from 'vuex';
	export default {
		components: {
			uniParse,
			baTreePicker,
			dateTimePicker,
			selectTree,
			uniFileUpload
		},
		data() {
			return {
				msystype:'',
				issuePartPepList:[],
				issueChargePepList:[],
				isDB:false,
				isCyrFlag:false,
				isDbzjFlag:false,
				isFzrFlag:false,
				sqdyShow:false,
				dycgscShow:'',
				form: {},
				zbList: [],
				timevalue1: '',
				timeType: 1,
				ytgkShow:false,
				msysShow: false,
				ytxsShow: false,
				ysblShow:false,
				timeshow: false,
				cgjbShow:false,
				jggsShow:false,
				type: '0',
				id: '',
				fileList_Info: [],
				issueAudit: {},
				issueInfo: {},
				msIssueCmt: [],
				msIssueConsult: {},
				msIssueDisclosure: {},
				msIssueLike: [],
				msIssueOpen: {},
				msIssueSurvey: {},
				msIssueConHandle:{},
				clientCode: '',
				userId: '',
				JGGSquery: {
					dceStart: '',
					dceEnd: ''
				},
				blquery:{
					consultHandle: {
						hanResult:'',
						currentUserId: '', //用户主键id
						issueId: '', //当前议题主键id
						conTime: '', //议事时间
						conPlace: '', //议事地点
						conLal: '', //议事经纬度
						conMeb: '', //议事人员，此处传空，后台赋值
					}
				},
				cgjbquery:{
					consultHandle: {
						hanResult:'',
						currentUserId: '', //用户主键id
						issueId: '', //当前议题主键id
						conTime: '', //议事时间
						conPlace: '', //议事地点
						conLal: '', //议事经纬度
						conMeb: '', //议事人员，此处传空，后台赋值
					}
				},
				ksmsxsQuery: {
					issueConsult: {
						currentUserId: '', //用户主键id
						issueId: '', //当前议题主键id
						conTime: '', //议事时间
						conPlace: '', //议事地点
						conLal: '', //议事经纬度
						conMeb: '', //议事人员，此处传空，后台赋值
					},
					currentUserId: '', //用户主键id
					consultMebArr: []
				},
				scxscgQuery: {
					issueId: '', //议题
					currentUserId: '', //当前用户主键id
					consultResult: {
						submitBy: '', //当前用户主键id
						conResult: '', //议事成果
					},
					fileList: []
				},
				dycgQuery: {
					issueId: '', //议题
					currentUserId: '', //当前用户主键id
					surveyResult: {
						submitBy: '', //当前用户主键id
						surveyResult: '', //议事成果
					},
					fileList: []
				}
			};
		},
		computed: {
			...mapState(['userInfo', 'fileList'])
		},
		onLoad(option) {
			this.loadLogin()
			
			if(this.$roleCodes('weiyuan')){
				this.isDB = true
			}else{
				this.isDB = false
			}
			
			if (option.type) {
				this.type = option.type
				
				if(this.type == 'zjbl'){
					this.blquery.consultHandle.hanType = '1'
				}
				
				if(this.type == 'zsrd'){
					this.blquery.consultHandle.hanType = '2'
				}
				
				if(this.type == 'bl'){
					this.blquery.consultHandle.hanType = '2'
				}
				
				
				if(this.type == 'rdzjbl'){
					this.cgjbquery.consultHandle.hanType = '1'
				}
				
				if(this.type == 'zyajy'){
					this.cgjbquery.consultHandle.hanType = '2'
				}
			}
			if (option.id) {
				this.id = option.id
				this.getD()
			}
			
			
			if(option.isCyrFlag){
				this.isCyrFlag = option.isCyrFlag
			}
			
			if(option.isDbzjFlag){
				this.isDbzjFlag = option.isDbzjFlag
			}
			
			if(option.isFzrFlag){
				this.isFzrFlag = option.isFzrFlag
			}
			
			
			
			
			
			this.loadTeam('','dbzj')
		},
		onHide() {},
		onUnload() {},
		methods: {
			jggsBtn(){
				let that = this
				if(!this.JGGSquery.dceStart){
					this.$msg('请选择开始日期')
					return
				}
				if(!this.JGGSquery.dceEnd){
					this.$msg('请选择结束日期')
					return
				}
				let a = {
					issueId: that.id,
					submitBy: this.userId, //当前用户主键id
					issueDisclosure: {
						issueId: that.id,
						dceStart: this.JGGSquery.dceStart,
						dceEnd: this.JGGSquery.dceEnd
					},
					fileList: this.fileList 
				}
				
				let url = '/msIssueInfo/addDisclosure';
				this.$request(url, a, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('结果公示成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});
			},
			//办理完成
			blwc(){
				let that = this
					let a = {
						issueId: that.id,
						currentUserId: this.userId, //当前用户主键id
						consultHandle: {
							hanType: '1',//代表上传办理结果：传值“1”市人大上传办理结果：传值“2”
							submitBy: this.userId, //当前用户主键id
							hanResult: this.blquery.consultHandle.hanResult, //议事成果
						},
						fileList: this.fileList
					}
					
					let url = '/msIssueInfo/addConsultHandle';
					this.$request(url, a, {
						load: true
					}).then((res) => {
						if (res.code == 200) {
							that.$msg('办理成功')
							setTimeout(() => {
								uni.navigateBack({
									delta: 1
								})
							}, 500)
						}
					});
				
			},
			// 显示选择器
			showPicker() {
				this.loadTeam('','dbzj')
				this.$refs.treePicker._show();
			},
			typeTap(e){
				if(e == '1'){
					this.loadTeam('','dbzj')
				}
				
				if(e == '2'){
					this.loadTeam('','dbjb')
				}
				
				if(e == '3'){
					this.zbList = []
				}
			},
			loadTeam(name,type) {
				this.$request('/system/sys-user/tree_users', {
					clientCode: '370782',
					currentUserId: this.userId,
					name:name ? name : '',
					teamType: type
				}).then((res) => {
					this.zbList = res.data;
					// this.waihotsList = res.data;
				});
			},
			searchTap(e,v){
				if(v == ''){
					this.zbList = []
				}else{
					this.$request('/system/sys-user/tree_users', {
						clientCode: '370782',
						currentUserId: this.userId,
						name:v ? v : '',
						teamType: e
					}).then((res) => {
						let a = []
						let aa = []
						if(res.data[0].children){
							if(res.data[0].children[0].children){
								a.push(res.data[0].children[0])
							}else{
								
							}
							if(res.data[0].children[1].children){
								a.push(res.data[0].children[1])
							}else{
								
							}
							if(a.length == 0){
								this.zbList = []
							}else{
								aa = res.data
								aa[0].children = a
								this.zbList = aa
							}
						}else{
							this.zbList = []
						}
						// this.zbList = res.data;
					});
				}
				
				
			},
			cgjbbtn(){
					let that = this	
					if(this.cgjbquery.consultHandle.hanType == '1'){
						let a = {
							issueId: that.id,
							currentUserId: this.userId, //当前用户主键id
							consultHandle: {
								hanType: '2',//代表上传办理结果：传值“1”市人大上传办理结果：传值“2”
								submitBy: this.userId, //当前用户主键id
								hanResult: this.cgjbquery.consultHandle.hanResult, //议事成果
							},
							fileList: this.fileList
						}
						
						let url = '/msIssueInfo/addConsultHandle';
						this.$request(url, a, {
							load: true
						}).then((res) => {
							if (res.code == 200) {
								that.$msg('上传议事办理结果成功')
								setTimeout(() => {
									uni.navigateBack({
										delta: 1
									})
								}, 500)
							}
						});
					}else{
						let a = {
							issueId: that.id,
							currentUserId: this.userId, //当前用户主键id
						}
						
						let url = '/msIssueInfo/conTrfYajy';
						this.$request(url, a, {
							load: true
						}).then((res) => {
							if (res.code == 200) {
								that.$msg('转议案建议成功')
								setTimeout(() => {
									uni.navigateBack({
										delta: 1
									})
								}, 500)
							}
						});
					}
					
					
					
					
					
				
			},
			scbljgBtn(){
				let that = this	
				
				if(this.blquery.consultHandle.hanType == '1'){
					let a = {
						issueId: that.id,
						currentUserId: this.userId, //当前用户主键id
						consultHandle: {
							hanType: '1',//代表上传办理结果：传值“1”市人大上传办理结果：传值“2”
							submitBy: this.userId, //当前用户主键id
							hanResult: this.blquery.consultHandle.hanResult, //议事成果
						},
						fileList: this.fileList
					}
					
					let url = '/msIssueInfo/addConsultHandle';
					this.$request(url, a, {
						load: true
					}).then((res) => {
						if (res.code == 200) {
							that.$msg('上传议事办理结果成功')
							setTimeout(() => {
								uni.navigateBack({
									delta: 1
								})
							}, 500)
						}
					});
				}else{
					let a = {
						issueId: that.id,
						currentUserId: this.userId, //当前用户主键id
					}
					
					let url = '/msIssueInfo/conTrfSrd';
					this.$request(url, a, {
						load: true
					}).then((res) => {
						if (res.code == 200) {
							that.$msg('转市人大成功')
							setTimeout(() => {
								uni.navigateBack({
									delta: 1
								})
							}, 500)
						}
					});
				}
				
				
				
				
				
			},
			dycgBtn() {
				// msIssueInfo/addSurveyResult



				let that = this

				if (!this.dycgQuery.surveyResult.surveyResult) {
					this.$msg('请输入调研成果')
					return
				}

				if (this.fileList.length == 0) {
					this.$msg('请上传调研成果图片')
					return
				}

				let a = {
					issueId: that.id,
					currentUserId: this.userId, //当前用户主键id
					surveyResult: {
						submitBy: this.userId, //当前用户主键id
						surveyResult: this.dycgQuery.surveyResult.surveyResult, //议事成果
					},
					fileList: this.fileList
				}


				let url = '/msIssueInfo/addSurveyResult';
				this.$request(url, a, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('提交调研成果成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});

			},
			scxscgBtn() {
				let that = this

				if (!this.scxscgQuery.consultResult.conResult) {
					this.$msg('请输入议事成果')
					return
				}

				if (this.fileList.length == 0) {
					this.$msg('请上传议事成果图片')
					return
				}

				let a = {
					issueId: that.id,
					currentUserId: this.userId, //当前用户主键id
					consultResult: {
						submitBy: this.userId, //当前用户主键id
						conResult: this.scxscgQuery.consultResult.conResult, //议事成果
					},
					fileList: this.fileList
				}


				let url = '/msIssueInfo/addConsultResult';
				this.$request(url, a, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('提交成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});

			},
			ksmsxsBtn() {
				let that = this
				if (!this.ksmsxsQuery.issueConsult.conTime) {
					this.$msg('请选择议事时间')
					return
				}
				// if (this.ksmsxsQuery.consultMebArr.length == 0) {
				// 	this.$msg('请选择议事人员')
				// 	return
				// }
				if (!this.ksmsxsQuery.issueConsult.conPlace) {
					this.$msg('请输入议事地点')
					return
				}

				let url = '/msIssueInfo/addConsult';
				that.ksmsxsQuery.issueConsult.issueId = this.id
				that.ksmsxsQuery.issueConsult.auditUser = this.userId
				that.ksmsxsQuery.issueConsult.currentUserId = this.userId
				that.ksmsxsQuery.currentUserId = this.userId
				this.$request(url, that.ksmsxsQuery, {
					load: true
				}).then((res) => {
					if (res.code == 200) {
						that.$msg('提交成功')
						setTimeout(() => {
							uni.navigateBack({
								delta: 1
							})
						}, 500)
					}
				});

			},
			getLoction() {
				let that = this
				uni.chooseLocation({
					success: function(res) {
						that.ksmsxsQuery.issueConsult.conPlace = res.name
						that.ksmsxsQuery.issueConsult.conLal = new String(res.longitude) + ',' + new String(res
							.latitude)
					}
				});
			},
			//监听选择（ids为数组）
			selectChange(ids, names) {
				let namesList = names.split(',')
				let a = []
				ids.map((item, index) => {
					let aQ = {
						userId: item,
						userName: namesList[index],
					}
					a.push(aQ)
				})
				this.ksmsxsQuery.consultMebArr = a
				this.$forceUpdate()
			},
			getD() {
				let that = this
				let url = '/msIssueInfo/queryAll';
				this.$request(url, {
					id: that.id,
					clientCode: "370782"
				}, {
					load: true
				}).then((res) => {
					that.fileList_Info = res.data.fileList_Info
					that.issueAudit = res.data.issueAudit
					that.issueInfo = res.data.issueInfo
					that.msIssueCmt = res.data.msIssueCmt
					that.msIssueConsult = res.data.msIssueConsult
					that.msIssueDisclosure = res.data.msIssueDisclosure
					that.msIssueLike = res.data.msIssueLike
					that.msIssueOpen = res.data.msIssueOpen
					that.msIssueSurvey = res.data.msIssueSurvey
					that.issuePartPepList = res.data.issuePartPepList
					that.issueChargePepList = res.data.issueChargePepList
					that.$forceUpdate()
				});
			},
			timeChange({
				date,
				dt
			}, idx) {
				this.ksmsxsQuery.issueConsult[idx] = date.year + '-' + date.month2 + '-' + date.day2
			},
			timeChange2({
				date,
				dt
			}, idx) {
				this.JGGSquery[idx] = date.year + '-' + date.month2 + '-' + date.day2
			},
			ontimeChange(e) {
				console.log("123")
				this.timeType = e
				this.timeshow = true
			},
			timeconfirm(e) {
				console.log("eee", e)
			},
			loadLogin() {
				if (this.userInfo.sysUser) {
					this.clientCode = this.userInfo.sysUser.clientCode;
					this.userId = this.userInfo.sysUser.id;
				} else {
					this.$logout();
				}
			},
		}
	};
</script>

<style lang="less" scoped>
	.detail-view {
		background-color: #ffffff;
		min-height: 100vh;
	}

	.formView {
		.formViewItem {
			display: flex;
			align-items: center;
			min-height: 120upx;
			padding: 0 40upx;
			border-bottom: 1upx solid #F6F7FB;

			.formViewItemLeft {
				flex: 0.7;
				text-align: left;
				color: #999999;
				font-size: 17px;
			}

			.formViewItemLeft2 {
				flex: 1;
				text-align: left;
				display: flex;
				align-items: center;
				color: #000000;
				font-size: 17px;
			}
			
			.formViewItemLeft3 {
				flex: 1.3;
				text-align: left;
				display: flex;
				align-items: center;
				color: #000000;
				font-size: 17px;
			}

			.formViewItemRight {
				flex: 1.5;
				text-align: right;
				color: #333333;
				word-break: break-word;
				font-size: 17px;

				image {
					position: relative;
					left: 280upx;
					width: 48upx;
					height: 48upx;
				}
			}
			
			.formViewItemRight2 {
				
				text-align: right;
				color: #333333;
				word-break: break-word;
				font-size: 17px;
			
				image {
					position: relative;
					left: 280upx;
					width: 48upx;
					height: 48upx;
				}
			}
		}

		.formViewItem2 {
			min-height: 120upx;
			// padding: 0 40upx;
			border-bottom: 1upx solid #F6F7FB;

			.formViewItemLeft {
				flex: 1;
				text-align: left;
				color: #999999;
				font-size: 17px;
			}

			.formViewItemLeft2 {
				flex: 1;
				text-align: left;
				padding: 20upx 40upx;
				color: #000000;
				font-size: 17px;
			}

			.formViewItemRight {
				flex: 1.5;
				text-align: right;
				color: #333333;
				font-size: 17px;

				image {
					position: relative;
					left: 280upx;
					width: 48upx;
					height: 48upx;
				}
			}
		}

		.textA {
			padding: 20upx 40upx;
			font-size: 17px;
			color: #333333;
			word-break: break-word;
		}
	}


	.fileList2 {
		padding: 0 40upx;
		background-color: #F6F7FB;

		.fileList2Item {
			display: flex;
			align-items: center;
			height: 100upx;
			padding: 10upx 0;

			.fileList2ItemLeft {
				flex: 1;
				text-align: left;
				padding: 0 10upx 0 0;

				image {
					width: 44upx;
					height: 52upx;
				}
			}

			.fileList2ItemCenter {
				padding: 0 0 0 0;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				flex: 7;
				font-size: 15px;
				color: #333333;
			}

			.fileList2ItemRight {
				flex: 1;
				text-align: right;

				image {
					width: 32upx;
					height: 32upx;
					position: relative;
					left: 30upx;
				}
			}
		}

		.fileListItemAudio {
			display: flex;
			align-items: center;
			width: 120upx;
			height: 60upx;
			background-color: #0077FF;

			.fileListItemAudioLeft {
				flex: 1;

				.fileListItemAudioLeftImg {
					width: 24upx;
					height: 24upx;
				}
			}
		}
	}

	.intitle {
		height: 100upx;
		line-height: 100upx;
		padding: 0 40upx;
		color: #333333;
		font-size: 17px;
		font-weight: bold;
	}

	.fiexd-btm {
		position: static;
		padding: 30rpx;
	}


	.histList {
		.histListItem {
			.histListItemTop {
				display: flex;
				align-items: center;

				.histListItemTopLeft {
					flex: 1;
					text-align: left;
				}

				.histListItemTopRight {
					flex: 1;
					text-align: right;
					padding-right: 40upx;
				}
			}
		}
	}

	.histListEdit {
		.histListItem {
			.histListItemTop {
				display: flex;
				align-items: center;

				.histListItemTopLeft {
					flex: 1;
					text-align: left;
				}

				.histListItemTopRight {
					flex: 1;
					text-align: right;
					padding-right: 40upx;
				}
			}
		}
	}

	.fileAdd {
		padding-left: 40upx;

		.fileAddTop {
			width: 120upx;
			height: 120upx;
			text-align: center;
			background-color: #F6F7FB;
			font-size: 26px;
			color: #999999;
			line-height: 120upx;
		}

		.fileAddText {
			font-size: 14px;
			color: #666666;
		}
	}

	/deep/ .u-form-item {
		margin: 0 40upx;
	}
</style>
